<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit|ie-comp|ie-stand">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <!--[if lt IE 9]>
  <script type="text/javascript" src="/Public/Admin/extend/lib/html5shiv.js"></script>
  <script type="text/javascript" src="/Public/Admin/extend/lib/respond.min.js"></script>
  <![endif]-->
  <link href="/Public/Admin/extend/css/login.css" rel="stylesheet" type="text/css" />
  <!--[if IE 6]>
  <script type="text/javascript" src="/Public/Admin/extend/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  <script>DD_belatedPNG.fix('*');</script>
  <![endif]-->
  <title>融悦金融后台管理</title>
  <meta name="keywords" content="FAS">
  <meta name="description" content="FAS">
  <style>
    .header{
      background: #426374 url("/Public/Admin/images/my1@2x.png") no-repeat 0 center;
    }
  </style>
</head>
<body>
<input type="hidden" id="TenantId" name="TenantId" value="" />
<div class="login">
        <div class="left"><div class="logo"></div><</div>
        <div class="right">
            <div class="title">融悦金融后台管理</div>

            <div id="loginform" class="form">
            <form class="form form-horizontal" action="<?php echo U('login');?>" method="post">
                <div class="line username">
                <input type="text" placeholder="请输入账号" id="username" name="username" class="login-text" value="admin" />
                </div>
                <div class="line pwd">
                <input type="password" placeholder="请输入密码" id="password" name="password" class="login-text" value="admin"/>
                </div>
                <div class="line code">
               <input name="verify" id="verify" class="input-text size-L" type="text" placeholder="验证码" onblur="if(this.value==''){this.value=''}" onclick="if(this.value=='验证码:'){this.value='';}"  style="width:150px;">
                 <a href="javascript:void(0);" class="" style=" margin-top:10px;">
            <img class="verifyimg reloadverify codeImg" alt="点击切换" src="<?php echo U('Admin/Public/verify');?>" style="width:120px; height:41px;">
          </a>
                </div>
                <div class="check-tips" style=""></div>
                <div class="line okbtn" style="margin-top:5px;"><input type="submit" id="btnLogin" value="登  陆" class="login-btn loginOk" /></div>
                </form>
            </div>
            <div class="Copyright"><font style="font-size:12px;">COPYRIGHT © 2027 FAS</font></div>
        </div>
 </div>


<script type="text/javascript" src="/Public/Admin/extend/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/Public/Admin/extend/static/h-ui/js/H-ui.min.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="/Public/static/jquery-1.10.2.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script type="text/javascript" src="/Public/static/jquery-2.0.3.min.js"></script>
<!--<![endif]-->

<script type="text/javascript">


    //表单提交
    $("form").submit(function(){
        var self = $(this);
        $.post(self.attr("action"), self.serialize(), success, "json");
        return false;

        function success(data){
           /* alert(data);
            return false;*/
            if(data.status){
                window.location.href = data.url;
            } else {
                self.find(".check-tips").text(data.info);
                //刷新验证码
                $(".reloadverify").click();
            }
        }
    });

    $(function(){
        //初始化选中用户名输入框
        $("#itemBox").find("input[name=username]").focus();
        //刷新验证码
        var verifyimg = $(".verifyimg").attr("src");
        $(".reloadverify").click(function(){
            if( verifyimg.indexOf('?')>0){
                $(".verifyimg").attr("src", verifyimg+'&random='+Math.random());
            }else{
                $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
            }
        });

        //placeholder兼容性
        //如果支持
        function isPlaceholer(){
            var input = document.createElement('input');
            return "placeholder" in input;
        }
        //如果不支持
        if(!isPlaceholer()){
            $(".placeholder_copy").css({
                display:'block'
            })
            $("#itemBox input").keydown(function(){
                $(this).parents(".item").next(".placeholder_copy").css({
                    display:'none'
                })
            })
            $("#itemBox input").blur(function(){
                if($(this).val()==""){
                    $(this).parents(".item").next(".placeholder_copy").css({
                        display:'block'
                    })
                }
            })


        }
    });
</script>

</body>
</html>